<div class="select_value">
    <fieldset >
        <legend>
            <b style="color: #00749f;">количество комнат</b>
        </legend>

        <?php
	if (isset($room)) {
		foreach ($room as $key => $value) {
			$e_room[$value] = $value;
		}
	}
        ?>

        <input type="checkbox"
        <?php if(isset($e_room['0'])){ ?> checked="checked"  <?php } ?>
        value="0" name="room[]">
        Комната
        <input
        <?php if(isset($e_room['1'])){ ?> checked="checked"  <?php } ?>
        type="checkbox" value="1" name="room[]">
        1
        <input
        <?php if(isset($e_room['2'])){ ?> checked="checked"  <?php } ?>
        type="checkbox" value="2" name="room[]">
        2
        <input
        <?php if(isset($e_room['3'])){ ?> checked="checked"  <?php } ?>
        type="checkbox" value="3" name="room[]">
        3
        <input
        <?php if(isset($e_room['4'])){ ?> checked="checked"  <?php } ?>
        type="checkbox" value="4" name="room[]">
        4
        <input
        <?php if(isset($e_room['5'])){ ?> checked="checked"  <?php } ?>
        type="checkbox" value="5" name="room[]">
        5
        <input
        <?php if(isset($e_room['6'])){ ?> checked="checked"  <?php } ?>
        type="checkbox" value="6" name="room[]">
        6(+)
        <span style="font-size:14px;color:red;text-decoration:blink;">*</span>
    </fieldset>
</div>